// Generated from Yql.g4 by ANTLR 4.7.

package grammar

import (
	"fmt"
	"unicode"

	"github.com/antlr/antlr4/runtime/Go/antlr"
)

// Suppress unused import error
var _ = fmt.Printf
var _ = unicode.IsLetter

var serializedLexerAtn = []uint16{
	3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 2, 27, 182,
	8, 1, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7,
	9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12,
	4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4,
	18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23,
	9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 3, 2, 3,
	2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 3, 5, 3, 5, 3, 6, 3, 6, 3,
	7, 3, 7, 3, 7, 3, 8, 3, 8, 3, 9, 3, 9, 3, 10, 3, 10, 3, 10, 3, 11, 3, 11,
	3, 11, 3, 12, 3, 12, 3, 12, 3, 13, 3, 13, 3, 13, 3, 13, 3, 14, 3, 14, 3,
	15, 3, 15, 3, 15, 3, 16, 3, 16, 3, 17, 3, 17, 3, 18, 3, 18, 3, 18, 3, 19,
	3, 19, 3, 19, 3, 19, 3, 19, 3, 20, 3, 20, 3, 20, 3, 20, 3, 20, 3, 20, 3,
	21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21,
	3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 5, 21, 129, 10, 21, 3, 22, 6,
	22, 132, 10, 22, 13, 22, 14, 22, 133, 3, 22, 7, 22, 137, 10, 22, 12, 22,
	14, 22, 140, 11, 22, 3, 23, 3, 23, 7, 23, 144, 10, 23, 12, 23, 14, 23,
	147, 11, 23, 3, 23, 3, 23, 3, 24, 3, 24, 3, 25, 5, 25, 154, 10, 25, 3,
	25, 6, 25, 157, 10, 25, 13, 25, 14, 25, 158, 3, 26, 5, 26, 162, 10, 26,
	3, 26, 6, 26, 165, 10, 26, 13, 26, 14, 26, 166, 3, 26, 3, 26, 7, 26, 171,
	10, 26, 12, 26, 14, 26, 174, 11, 26, 3, 27, 6, 27, 177, 10, 27, 13, 27,
	14, 27, 178, 3, 27, 3, 27, 3, 145, 2, 28, 3, 3, 5, 4, 7, 5, 9, 6, 11, 7,
	13, 8, 15, 9, 17, 10, 19, 11, 21, 12, 23, 13, 25, 14, 27, 15, 29, 16, 31,
	17, 33, 18, 35, 19, 37, 20, 39, 21, 41, 22, 43, 23, 45, 24, 47, 2, 49,
	25, 51, 26, 53, 27, 3, 2, 6, 5, 2, 67, 92, 97, 97, 99, 124, 3, 2, 50, 59,
	4, 2, 45, 45, 47, 47, 5, 2, 11, 12, 15, 15, 34, 34, 2, 193, 2, 3, 3, 2,
	2, 2, 2, 5, 3, 2, 2, 2, 2, 7, 3, 2, 2, 2, 2, 9, 3, 2, 2, 2, 2, 11, 3, 2,
	2, 2, 2, 13, 3, 2, 2, 2, 2, 15, 3, 2, 2, 2, 2, 17, 3, 2, 2, 2, 2, 19, 3,
	2, 2, 2, 2, 21, 3, 2, 2, 2, 2, 23, 3, 2, 2, 2, 2, 25, 3, 2, 2, 2, 2, 27,
	3, 2, 2, 2, 2, 29, 3, 2, 2, 2, 2, 31, 3, 2, 2, 2, 2, 33, 3, 2, 2, 2, 2,
	35, 3, 2, 2, 2, 2, 37, 3, 2, 2, 2, 2, 39, 3, 2, 2, 2, 2, 41, 3, 2, 2, 2,
	2, 43, 3, 2, 2, 2, 2, 45, 3, 2, 2, 2, 2, 49, 3, 2, 2, 2, 2, 51, 3, 2, 2,
	2, 2, 53, 3, 2, 2, 2, 3, 55, 3, 2, 2, 2, 5, 59, 3, 2, 2, 2, 7, 62, 3, 2,
	2, 2, 9, 64, 3, 2, 2, 2, 11, 66, 3, 2, 2, 2, 13, 68, 3, 2, 2, 2, 15, 71,
	3, 2, 2, 2, 17, 73, 3, 2, 2, 2, 19, 75, 3, 2, 2, 2, 21, 78, 3, 2, 2, 2,
	23, 81, 3, 2, 2, 2, 25, 84, 3, 2, 2, 2, 27, 88, 3, 2, 2, 2, 29, 90, 3,
	2, 2, 2, 31, 93, 3, 2, 2, 2, 33, 95, 3, 2, 2, 2, 35, 97, 3, 2, 2, 2, 37,
	100, 3, 2, 2, 2, 39, 105, 3, 2, 2, 2, 41, 128, 3, 2, 2, 2, 43, 131, 3,
	2, 2, 2, 45, 141, 3, 2, 2, 2, 47, 150, 3, 2, 2, 2, 49, 153, 3, 2, 2, 2,
	51, 161, 3, 2, 2, 2, 53, 176, 3, 2, 2, 2, 55, 56, 7, 99, 2, 2, 56, 57,
	7, 112, 2, 2, 57, 58, 7, 102, 2, 2, 58, 4, 3, 2, 2, 2, 59, 60, 7, 113,
	2, 2, 60, 61, 7, 116, 2, 2, 61, 6, 3, 2, 2, 2, 62, 63, 7, 42, 2, 2, 63,
	8, 3, 2, 2, 2, 64, 65, 7, 43, 2, 2, 65, 10, 3, 2, 2, 2, 66, 67, 7, 63,
	2, 2, 67, 12, 3, 2, 2, 2, 68, 69, 7, 35, 2, 2, 69, 70, 7, 63, 2, 2, 70,
	14, 3, 2, 2, 2, 71, 72, 7, 64, 2, 2, 72, 16, 3, 2, 2, 2, 73, 74, 7, 62,
	2, 2, 74, 18, 3, 2, 2, 2, 75, 76, 7, 64, 2, 2, 76, 77, 7, 63, 2, 2, 77,
	20, 3, 2, 2, 2, 78, 79, 7, 62, 2, 2, 79, 80, 7, 63, 2, 2, 80, 22, 3, 2,
	2, 2, 81, 82, 7, 107, 2, 2, 82, 83, 7, 112, 2, 2, 83, 24, 3, 2, 2, 2, 84,
	85, 7, 35, 2, 2, 85, 86, 7, 107, 2, 2, 86, 87, 7, 112, 2, 2, 87, 26, 3,
	2, 2, 2, 88, 89, 7, 8747, 2, 2, 89, 28, 3, 2, 2, 2, 90, 91, 7, 35, 2, 2,
	91, 92, 7, 8747, 2, 2, 92, 30, 3, 2, 2, 2, 93, 94, 7, 46, 2, 2, 94, 32,
	3, 2, 2, 2, 95, 96, 7, 48, 2, 2, 96, 34, 3, 2, 2, 2, 97, 98, 7, 42, 2,
	2, 98, 99, 7, 43, 2, 2, 99, 36, 3, 2, 2, 2, 100, 101, 7, 118, 2, 2, 101,
	102, 7, 116, 2, 2, 102, 103, 7, 119, 2, 2, 103, 104, 7, 103, 2, 2, 104,
	38, 3, 2, 2, 2, 105, 106, 7, 104, 2, 2, 106, 107, 7, 99, 2, 2, 107, 108,
	7, 110, 2, 2, 108, 109, 7, 117, 2, 2, 109, 110, 7, 103, 2, 2, 110, 40,
	3, 2, 2, 2, 111, 112, 7, 101, 2, 2, 112, 113, 7, 113, 2, 2, 113, 114, 7,
	119, 2, 2, 114, 115, 7, 112, 2, 2, 115, 129, 7, 118, 2, 2, 116, 117, 7,
	117, 2, 2, 117, 118, 7, 119, 2, 2, 118, 129, 7, 111, 2, 2, 119, 120, 7,
	99, 2, 2, 120, 121, 7, 120, 2, 2, 121, 129, 7, 105, 2, 2, 122, 123, 7,
	111, 2, 2, 123, 124, 7, 99, 2, 2, 124, 129, 7, 122, 2, 2, 125, 126, 7,
	111, 2, 2, 126, 127, 7, 107, 2, 2, 127, 129, 7, 112, 2, 2, 128, 111, 3,
	2, 2, 2, 128, 116, 3, 2, 2, 2, 128, 119, 3, 2, 2, 2, 128, 122, 3, 2, 2,
	2, 128, 125, 3, 2, 2, 2, 129, 42, 3, 2, 2, 2, 130, 132, 9, 2, 2, 2, 131,
	130, 3, 2, 2, 2, 132, 133, 3, 2, 2, 2, 133, 131, 3, 2, 2, 2, 133, 134,
	3, 2, 2, 2, 134, 138, 3, 2, 2, 2, 135, 137, 9, 3, 2, 2, 136, 135, 3, 2,
	2, 2, 137, 140, 3, 2, 2, 2, 138, 136, 3, 2, 2, 2, 138, 139, 3, 2, 2, 2,
	139, 44, 3, 2, 2, 2, 140, 138, 3, 2, 2, 2, 141, 145, 7, 41, 2, 2, 142,
	144, 11, 2, 2, 2, 143, 142, 3, 2, 2, 2, 144, 147, 3, 2, 2, 2, 145, 146,
	3, 2, 2, 2, 145, 143, 3, 2, 2, 2, 146, 148, 3, 2, 2, 2, 147, 145, 3, 2,
	2, 2, 148, 149, 7, 41, 2, 2, 149, 46, 3, 2, 2, 2, 150, 151, 9, 3, 2, 2,
	151, 48, 3, 2, 2, 2, 152, 154, 9, 4, 2, 2, 153, 152, 3, 2, 2, 2, 153, 154,
	3, 2, 2, 2, 154, 156, 3, 2, 2, 2, 155, 157, 5, 47, 24, 2, 156, 155, 3,
	2, 2, 2, 157, 158, 3, 2, 2, 2, 158, 156, 3, 2, 2, 2, 158, 159, 3, 2, 2,
	2, 159, 50, 3, 2, 2, 2, 160, 162, 9, 4, 2, 2, 161, 160, 3, 2, 2, 2, 161,
	162, 3, 2, 2, 2, 162, 164, 3, 2, 2, 2, 163, 165, 5, 47, 24, 2, 164, 163,
	3, 2, 2, 2, 165, 166, 3, 2, 2, 2, 166, 164, 3, 2, 2, 2, 166, 167, 3, 2,
	2, 2, 167, 168, 3, 2, 2, 2, 168, 172, 7, 48, 2, 2, 169, 171, 5, 47, 24,
	2, 170, 169, 3, 2, 2, 2, 171, 174, 3, 2, 2, 2, 172, 170, 3, 2, 2, 2, 172,
	173, 3, 2, 2, 2, 173, 52, 3, 2, 2, 2, 174, 172, 3, 2, 2, 2, 175, 177, 9,
	5, 2, 2, 176, 175, 3, 2, 2, 2, 177, 178, 3, 2, 2, 2, 178, 176, 3, 2, 2,
	2, 178, 179, 3, 2, 2, 2, 179, 180, 3, 2, 2, 2, 180, 181, 8, 27, 2, 2, 181,
	54, 3, 2, 2, 2, 14, 2, 128, 131, 133, 138, 145, 153, 158, 161, 166, 172,
	178, 3, 8, 2, 2,
}

var lexerDeserializer = antlr.NewATNDeserializer(nil)
var lexerAtn = lexerDeserializer.DeserializeFromUInt16(serializedLexerAtn)

var lexerChannelNames = []string{
	"DEFAULT_TOKEN_CHANNEL", "HIDDEN",
}

var lexerModeNames = []string{
	"DEFAULT_MODE",
}

var lexerLiteralNames = []string{
	"", "'and'", "'or'", "'('", "')'", "'='", "'!='", "'>'", "'<'", "'>='",
	"'<='", "'in'", "'!in'", "'\u2229'", "'!\u2229'", "','", "'.'", "'()'",
	"'true'", "'false'",
}

var lexerSymbolicNames = []string{
	"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
	"TRUE", "FALSE", "FUNC", "FIELDNAME", "STRING", "INT", "FLOAT", "WS",
}

var lexerRuleNames = []string{
	"T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8",
	"T__9", "T__10", "T__11", "T__12", "T__13", "T__14", "T__15", "T__16",
	"TRUE", "FALSE", "FUNC", "FIELDNAME", "STRING", "DIGIT", "INT", "FLOAT",
	"WS",
}

type YqlLexer struct {
	*antlr.BaseLexer
	channelNames []string
	modeNames    []string
	// TODO: EOF string
}

var lexerDecisionToDFA = make([]*antlr.DFA, len(lexerAtn.DecisionToState))

func init() {
	for index, ds := range lexerAtn.DecisionToState {
		lexerDecisionToDFA[index] = antlr.NewDFA(ds, index)
	}
}

func NewYqlLexer(input antlr.CharStream) *YqlLexer {

	l := new(YqlLexer)

	l.BaseLexer = antlr.NewBaseLexer(input)
	l.Interpreter = antlr.NewLexerATNSimulator(l, lexerAtn, lexerDecisionToDFA, antlr.NewPredictionContextCache())

	l.channelNames = lexerChannelNames
	l.modeNames = lexerModeNames
	l.RuleNames = lexerRuleNames
	l.LiteralNames = lexerLiteralNames
	l.SymbolicNames = lexerSymbolicNames
	l.GrammarFileName = "Yql.g4"
	// TODO: l.EOF = antlr.TokenEOF

	return l
}

// YqlLexer tokens.
const (
	YqlLexerT__0      = 1
	YqlLexerT__1      = 2
	YqlLexerT__2      = 3
	YqlLexerT__3      = 4
	YqlLexerT__4      = 5
	YqlLexerT__5      = 6
	YqlLexerT__6      = 7
	YqlLexerT__7      = 8
	YqlLexerT__8      = 9
	YqlLexerT__9      = 10
	YqlLexerT__10     = 11
	YqlLexerT__11     = 12
	YqlLexerT__12     = 13
	YqlLexerT__13     = 14
	YqlLexerT__14     = 15
	YqlLexerT__15     = 16
	YqlLexerT__16     = 17
	YqlLexerTRUE      = 18
	YqlLexerFALSE     = 19
	YqlLexerFUNC      = 20
	YqlLexerFIELDNAME = 21
	YqlLexerSTRING    = 22
	YqlLexerINT       = 23
	YqlLexerFLOAT     = 24
	YqlLexerWS        = 25
)
